package 面向对象.作业;

public class Fhone01 {
    private String brand;
    private int price;
    private String color;

    public Fhone01() {
    }
    public Fhone01(String brand, int price, String color) {
        this.brand = brand;
        this.price = price;
        this.color = color;
    }
    //打电话
    public void call(){
        System.out.println("正在使用价格为"+price+"的"+color+"的"+brand+"打电话");
    }
    public void sendMessage(){
        System.out.println("正在使用价格为"+price+"的"+color+"的"+brand+"发短信");
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }


}
